package com.huatai.datacenter.job;

import com.huatai.datacenter.service.SubjectDataSetService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author gusiyi
 * @version 1.0
 * @className SubjectDataSetJob
 * @description 描述：
 * @date 2023/6/26 15:27
 */
@Component
@Slf4j
public class SubjectDataSetJob {

	@Autowired
	private SubjectDataSetService subjectDataSetService;

	@XxlJob("putDataSetInRedisHandler")
	public ReturnT<String> putDataSetInRedisHandler(String param) throws Exception{
		log.info("XXL-JOB:putDataSetInRedis");
		subjectDataSetService.addDataSetCountBarGraph();
		return ReturnT.SUCCESS;
	}
}
